package com.itheima02;

public class Test {
    public static void main(String[] args) {
        long sum =150 ;
        long sum1=0;
        long sum2=0;
        System.out.println("百家乐倍投分析:");
        for (int i = 0; i < 30; i++) {
            sum1+=sum *=2;
            sum2 = sum*2-sum1;
            System.out.println("第"+(i+1)+"把投入:"+sum+" 累计投入:"+sum1+" 利润(两倍赔率):"+sum2);
        }
    }
}
